package com.huluobo.mvvm_base.bean;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Created by LC on 2024/3/26.
 * 余额表
 * autoGenerate 自增
 */
@Entity(tableName = "user_money")
public class Money {
    @PrimaryKey(autoGenerate = true)
    public long id;

    @ColumnInfo(name = "user_name")
    public String username;

    @ColumnInfo(name = "money")
    public float money;

    public Money(String username, float money) {
        this.username = username;
        this.money = money;
    }

    @Override
    public String toString() {
        return "Money{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", money=" + money +
                '}';
    }
}
